package com.chefu.autoparts.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_auto_parts")
@ApiModel(value="AutoParts对象", description="")
public class AutoParts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "ap_id", type = IdType.ID_WORKER)
    private Long apId;

    @ApiModelProperty(value = "品牌id")
    private String brandId;

    @ApiModelProperty(value = "配件商id")
    private Long ppId;

    @ApiModelProperty(value = "配件一级分类id")
    private String pcl1Id;

    @ApiModelProperty(value = "配件二级分类id")
    private String pcl2Id;

    @ApiModelProperty(value = "配件价格")
    private Float apPrice;

    @ApiModelProperty(value = "配件名称")
    private String apName;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
